package com.shop.loan.model.entity;

import com.shop.loan.model.common.RequestBase;
import lombok.Data;

import java.util.Date;

@Data
public class UserContactByMybatis extends RequestBase {
    /**
     * 
     */
    private Long id;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 联系人电话
     */
    private String mobile;

    /**
     * 联系人姓名
     */
    private String name;

    /**
     * 关系
     */
    private Integer relation;

    /**
     * 
     */
    private Long userId;

    private String name2;

    private String mobile2;

    private Integer relation2;

    private String addressBooks;

    private String callLogs;

    private Long orderId;

    public UserContactByMybatis(Long id, Date createTime, String mobile, String name, Integer relation, Long userId) {
        this.id = id;
        this.createTime = createTime;
        this.mobile = mobile;
        this.name = name;
        this.relation = relation;
        this.userId = userId;
    }

    public UserContactByMybatis() {
        super();
    }

    /**
     * 获取
     * @return id 
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取创建时间
     * @return create_time 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取联系人电话
     * @return mobile 联系人电话
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * 设置联系人电话
     * @param mobile 联系人电话
     */
    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    /**
     * 获取联系人姓名
     * @return name 联系人姓名
     */
    public String getName() {
        return name;
    }

    /**
     * 设置联系人姓名
     * @param name 联系人姓名
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * 获取关系
     * @return relation 关系
     */
    public Integer getRelation() {
        return relation;
    }

    /**
     * 设置关系
     * @param relation 关系
     */
    public void setRelation(Integer relation) {
        this.relation = relation;
    }

    /**
     * 获取
     * @return user_id 
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId 
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }
}